#pragma once
#include "InternalsPlugin.hpp"
#include "Sprite.hpp"
#include "TypeDefs.hpp"

class WidgetWeatherInfo
{
public:
	WidgetWeatherInfo(const char *pRootPath, const char *pIniUIFilename, const char *pIniDriverMappingFilename, const char *pIniVehiculeClassMappingFilename);
	~WidgetWeatherInfo(void);

	void init(const ScreenInfoV01 &info, float ratio, float ratioWidth, float ratioHeight, Sprite spriteList[]);
	void updateData(const ScoringInfoV01 &info);
	void render(int profileIndex, const ScreenInfoV01 &info, const LPD3DXFONT *fontList, const D3DCOLOR *colorList, Sprite spriteList[]); 

//private:
  bool initialized;
 
  	int nbProfiles;
	PluginProfile profiles[10];

	RECT tmpRect;

 const char *rootPath;
  char iniUIFilename[800];

  // widget
  bool available;
  ImageData bgImageData;
 

    // tools
  char tmp[1000];

  // air
  bool airTempAvailable;
  TextData airTempTextData;
  char airTemp[10]; 

  // track
  bool trackTempAvailable;
  TextData trackTempTextData;
  char trackTemp[10]; 

};

